home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / UUPC3 / MAC_SPEC / HOST.H < prev    next >
Text File  |  1992-01-14  |  2KB  |  89 lines

  1. /*        mac.h
  2.  *
  3.  *        Macintosh version
  4.  *
  5.  */
  6.  
  7. /* on */
  8. #define MULTIFINDER    /* turn on support for running under multifinder on mac */
  9.  
  10. #ifdef MULTIFINDER
  11. extern int Check_Events(long Sleep_Time);        /* call here periodically for multifinder to work */
  12.  
  13. extern long Last_Check_Event;        /* last tick count of Check_Events call */
  14. #define MF_DELAY (6)                /* ticks between event checks */
  15. #endif
  16.  
  17. /* on */
  18. #define Upgrade     /* turn on upgrades to standard uupc for mac
  19.                      * \number (variable timeout) feature for L.sys (systems) file.
  20.                      * fixed BREAK sending.
  21.                      * alen@crash 10/22/89.
  22.                      * garym@crash implemented L.sys blank, comment and continuation
  23.                      * lines 10/27/89.
  24.                      */
  25. /* on */
  26. #define BREAK        /* enable BREAKx send string
  27.                      */
  28. /* on */
  29. #define SLAVELOG    /* so slave mode will put out Username: & Password:
  30.                      * prompts.
  31.                      */
  32.  
  33. /* on */
  34. #define DEF_FRAME    /* to enable default ring around default button in dialog */
  35.  
  36. typedef int boolean;
  37.  
  38. #include "uupcproto.h"
  39. #include "unixlibproto.h"
  40. #include "mailproto.h"
  41.  
  42. #include <time.h>
  43. #include <errno.h>
  44. #include <ctype.h>
  45. #include <string.h>
  46. #ifdef THINK_C
  47. # include <stdlib.h>
  48. # include <unix.h>
  49. #endif THINK_C
  50.  
  51. #define SAME     0
  52. #define    FALSE    0
  53. #define    TRUE    1
  54.  
  55. #define    TFILENAME    "tmpfile.%.7ld"
  56. #define    SFILENAME    "SEQF"
  57.  
  58. #define SEPCHAR        '/'    /* path separater character        */
  59. #define DIRCHAR        ':' /* Mac directory-separator character */
  60. #define SIGFILE        ".signature"    /* file containing signature    */
  61. #define COPYFILE    "mail.sent"    /* copy of sent mail    */
  62. #define NEWSDIR        "rnews.%02d%02d%02d.%02d%02d%02d.%03d"
  63.  
  64. #define HOSTINIT    macinit()    /* name of function used to initialize    */
  65.  
  66. #define FILEMODE(f)
  67.  
  68. #define    CALLFILE    "C."
  69. #define    XQTFILE        "X."
  70. #define STATFILE    "ST."
  71.  
  72. #include "genv.h"
  73. #define     index    strchr
  74. #define  rindex    strrchr
  75. extern    char *fgets();
  76. extern    char *index();
  77. extern    char *rindex();
  78.  
  79. extern     int    debuglevel;                  /* debugging level */
  80. extern    time_t theTime;
  81.  
  82. typedef enum {Idle_System=1, Call_Systems, Cancel_Call, Quit_Program,
  83.               Abort_Program, Shutdown_Program};
  84. extern  int Main_State;
  85.  
  86. #ifdef Upgrade
  87. extern long int systimeout;
  88. #endif Upgrade
  89.